package com.xyz.springcloud.Util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class IDDemo {
    public static void main(String[] args) {

        System.out.println("11111111111111111111111111111111111111111".length());

        //上面二进制转换成10进制
        long time = 2199023255551L;
        Date date =new Date();
        date.setTime(time);

        System.out.println(new SimpleDateFormat("yyyy-MM-dd").format(date));
    }
}
